<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp"%>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <title>招标密码管理</title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp" %>
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
    
    <section class="content">
        <div class=" box box-success">
            <div class="box-body">
                <div class=" form-inline">
                </div>
            </div>
        </div>

        <table class="jqgrid" id="gridlist">
        </table>
        <div id="gridpage"></div>

    </section>
    
    <%@ include file="/WEB-INF/component/commonJS.jsp" %>
    <script type="text/javascript">
    
        $(function () {
        	var projId = "${projId}";
        	toCheckPassword(projId);
        	 //设置招标阶段设置
            function toCheckPassword(projId){
            	$.post("${ctx}/bidProject/getPasswordInfo.html", {
            		projId:projId
            	}, function(result){
            		if(result){
    	        		var result = eval("("+result+")");
    	        		if(result.firstSetPswd){
    	        			$.HN.message.alert("请设置密码！", "消息","warn");
    	        		}else{
    	        			 $.HN.dialog.open({
    	        	             id:"password",
    	        	             title:"${name}",
    	        	             url:" ${ctx}/bidProject/toCheckPassword.html?projId="+projId,
    	        	             width:"800px",
    	        	             height:"300px"
    	        	             }
    	        	             ); 
    	        		}
            		}else{
            			$.HN.message.alert("数据异常！", "消息","error");
            		}
            	});
            	
            }
        });

        
        
       
      
        
        
    </script>
</body>
</html>